#include "Game.h"
#include <iostream>
#include <string>
//This is the game's main function. It sets console encoding, creates a `Game` instance to start the game, and shows a exit prompt after the game ends, controlling the game flow.
int main() {
    // Set console character encoding
    #ifdef _WIN32
    system("chcp 65001");
    #endif
    
    // Create game instance
    Game game;
    
    // Start game
    game.run();
    
    std::cout << "\nThank you for playing!" << std::endl;
    
    // Pause at the end of the game, waiting for user to press any key to exit
    std::cout << "\nPress Enter to exit the game..." << std::endl;
    std::string dummy;
    std::getline(std::cin, dummy);
    
    return 0;
} 